package com.wang.cloud.manage.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wang.cloud.common.mysql.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
* <p>
* 系统-角色-菜单关联表
* </p>
*
* @author wy
* @since 2024-07-15
*/
@Getter
@Setter
@TableName("sys_role_menu_relation")
@Schema(name = "RoleMenuRelationEntity", description = "系统-角色-菜单关联表")
public class RoleMenuRelationEntity extends BaseEntity {

    @Schema(description = "角色ID")
    @TableField("role_id")
    private Long roleId;

    @Schema(description = "菜单ID")
    @TableField("menu_id")
    private Long menuId;

    @Schema(description = "角色和菜单树的选择（关系）类型 1-半选、2-全选")
    @TableField("type")
    private Integer type;
}
